import request from './request.js'
const common = {
  //特供车源列表
  getCarList(data = {}) {
    return request.post('/bussiness/Index/GetCarList', data)
  },
  //最新寻车列表
  getFindCarList(data = {}) {
    return request.post('/bussiness/Index/GetFindCarList', data)
  },
  //商户端_首页_精品特供
  GetGoodList(data = {}) {
    return request.post('/bussiness/Index/GetGoodList', data)
  },
  //商户端_首页_寻配件
  GetFindGoodList(data = {}) {
    return request.post('/bussiness/Index/GetFindGoodList', data)
  },

  //收获地址列表
  addressList(data = {}) {
    return request.post('/api/common/core/ReceiverAddress/GetReceiverAddressMyList', data)
  },
  //新增收获地址列表
  addAddressList(data = {}) {
    return request.post('/api/common/core/ReceiverAddress/AddReceiverAddress', data)
  },
  //编辑收获地址列表
  editAddressList(data = {}) {
    return request.post('/api/common/core/ReceiverAddress/UpdateReceiverAddress', data)
  },
  //删除收获地址列表
  delAddressList(data = {}) {
    return request.post('/api/common/core/ReceiverAddress/DeleteReceiverAddress', data)
  },
  //默认收获地址列表
  AddressList(data = {}) {
    return request.put('/api/common/core/ReceiverAddress/GetReceiverAddressMyList', data)
  },
  //搜索车源
  indexSearchCar(data = {}) {
    return request.post('/bussiness/Index/SearchCar', data)
  },
  //搜索美护宝
  indexSearchCood(data = {}) {
    return request.post('/bussiness/Index/SearchGood', data)
  },
  //搜索店铺
  indexSearchStore(data = {}) {
    return request.post('/bussiness/Index/SearchStore', data)
  },
  //品牌
  GetCarBrandList(data = {}) {
    return request.post('/public/BusBrand/GetCarBrandList', data)
  },
  //系列-配置
  GetCarModelAndConfigList(data = {}) {
    return request.post('/public/BusBrand/GetCarModelAndConfigList', data)
  },
  //颜色
  GetCarColourList(data = {}) {
    return request.post('/public/BusBrand/GetCarColourList', data)
  },
  //根据品牌id获得分组系列
  GetCarTypeLists(data = {}) {
    return request.post('/api/common/core/AllCar/GetCarTypeLists', data)
  },
  //根据系列id获取所有排量分组
  GetcarTypeDisplacementLists(data = {}) {
    return request.post('/api/common/core/AllCar/GetcarTypeDisplacementLists', data)
  },
  //根据系列id以及排量获取车子
  GetCarList(data = {}) {
    return request.post('/api/common/core/AllCar/GetCarList', data)
  },
  //添加爱车
  AddCar(data = {}) {
    return request.post('/api/common/core/LvoeCar/AddCar', data)
  },
  //删除爱车
  DeleteCar(data = {}) {
    return request.post('/api/common/core/LvoeCar/DeleteCar', data)
  },
  //地区
  GetRegionByLevelList(data = {}) {
    return request.post('/public/Region/GetRegionByLevelList', data)
  },
  //电话记录
  AddMobileContactData(data = {}) {
    return request.post('/bussiness/BusGoods/AddMobileContactData', data)
  },
  //获取热门城市
  getHotCity() {
    return request.get('/api/common/core/Region/GetHotCity')
  },
  // 确认签字
  QuatationSure(data = {}) {
    return request.post('/api/common/core/Sign/QuatationSure', data)
  },
  // 获取可开票的列表
  GetInvoiceNeedList(data = {}) {
    return request.post('/api/common/core/Invoice/GetInvoiceNeedList', data)
  },
  // 首页搜索关键字
  SearchCarList(data = {}) {
    return request.post('/api/common/core/Public/SearchCarList', data)
  },
  // 获取发票抬头列表
  GetInvoiceTitleList(data = {}) {
    return request.post('/api/common/core/Invoice/GetInvoiceTitleList', data)
  },
  //新增发票抬头
  AddReceiverAddress(data = {}) {
    return request.post('/api/common/core/Invoice/AddReceiverAddress', data)
  },
  //提交开票
  Invoiced(data = {}) {
    return request.post('/api/common/core/Invoice/Invoiced', data)
  },
  //删除抬头
  DeleteInvoiceTitle(data = {}) {
    return request.post('/api/common/core/Invoice/DeleteInvoiceTitle', data)
  },
  //更新抬头
  UpdateInvoiceTitle(data = {}) {
    return request.post('/api/common/core/Invoice/UpdateInvoiceTitle', data)
  },
  //添加我的爱车--热门品牌
  GetHotCarBrandList(data = {}) {
    return request.post('/common/AllCar/GetHotCarBrandList', data)
  },
  //余额支付
  ClientBalancePay(data = {}) {
	  return request.post('/api/client/core/AccountMoney/ClientBalancePay', data)
  },
  // 优惠卷绑定爱车
  CouponBindingCar(data) {
    return request.post('/api/common/core/CouponCommon/CouponBindingCar', data)
  },
}

export default common
